package com.liuluo.homework1025hou.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.liuluo.homework1025hou.domain.Customer;
import com.liuluo.homework1025hou.domain.Student
import com.liuluo.homework1025hou.service.CustomerService;
import com.liuluo.homework1025hou.mapper.CustomerMapper;
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.stereotype.Service;

/**
* @author liulu
* @description 针对表【customer】的数据库操作Service实现
* @createDate 2025-02-24 09:55:34
*/
@Service
class CustomerServiceImpl(private val customerMapper: CustomerMapper) : ServiceImpl<CustomerMapper, Customer>(), CustomerService{

    override fun addCustomer(customer: Customer): Int {
        TODO("Not yet implemented")
    }

    override fun deleteCustomer(id: Int): Int {
        val dc = customerMapper.deleteById(id);
        return dc
    }

    override fun Login(account: String, password: String): Int {
        val lg = customerMapper.Login(account, password);
        return lg
    }


}




